import requests
import configparser

parser = configparser.ConfigParser()
parser.read("settings.ini", encoding='utf-8')

hook_url = parser.get("message","hook")

def send(Message):
    web_hook_url = hook_url
    res = requests.post(
        url=web_hook_url,
        json={
            "msgtype": "text",
            "text": {
                "content": "{}".format(Message),
                "mentioned_list": ["@all"]
            }
        }
    )
    res.close()
